package com.itce.arco.practicenote.day01.practice3;

public abstract class Animal {
    private String name;
    private int age;
    private double weight;

    public Animal(){
        System.out.println("父类的无参构造方法执行了");
    }
    public Animal(String name, int age, double weight){
        this.name = name;
        this.age = age;
        this.weight = weight;
    }
    public String getName(){
        return this.name;
    }
    public int getAge(){
        return this.age;
    }
    public double getWeight(){
        return this.weight;
    }
    public abstract void work();
}
